package com.mstore.service;

import com.mstore.dao.TradeInfoDao;
import com.mstore.pojo.TradeInfo;
import com.mstore.util.CreateLaundry;

public class TradeInfoService {

	private TradeInfoDao tradeInfoDao;

	/**
	 * 添加交易记录
	 */
	public void addMyTradeInfo(TradeInfo tradeInfo) {
		tradeInfo.setSerialNo(new CreateLaundry().createLaundryCode());
		tradeInfoDao.addMyTradeInfo(tradeInfo);
	}

	public TradeInfoDao getTradeInfoDao() {
		return tradeInfoDao;
	}

	public void setTradeInfoDao(TradeInfoDao tradeInfoDao) {
		this.tradeInfoDao = tradeInfoDao;
	}
}
